﻿using System.Collections.Generic;

namespace openxmlconv
{
    public class StyleTable
    {
        private List<Style> table = new List<Style>();

        internal bool isEmpty()
        {
            return (table.Count == 0);
        }

        internal void add(Style s)
        {
            table.Add(s);
        }

        internal Style Query(string styleName)
        {
            foreach (Style s in table)
            {
                if (s.getName() == styleName)
                    return s;
            }
            return null;
        }
        internal void Clear()
        {
            table.Clear();
        }
    }
}
